<html>
<head>
    <meta charset="UTF-8">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</head>
<body style="background:#efefef;">
    <div >
        <button id="getAll">发送AJAX请求</button>
    </div>
</body>
<script type="text/javascript">
function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
}

var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api2.bmob.cn/1/classes/assets/04ad75b69d",
    "method": "GET",
    "headers": {
        "Content-Type": "application/json",
        "X-Bmob-Application-Id": "b4eeb1c6ab283d4a5b49a321bf3d6d46",
        "X-Bmob-REST-API-Key": "68b8601278c31406755d7a20ab519c5e"
    },
    "processData": false,
    "data": ""
}

$("#getAll").click(function(){
    $.ajax(settings).done(function (response) {
        console.log(response);
    });
})
</script>
</html>